# Custom LLM agent

This notebook goes through how to create your own custom LLM agent.

An LLM agent consists of three parts:

- `PromptTemplate`: This is the prompt template that can be used to instruct the language model on what to do
- LLM: This is the language model that powers the agent
- `stop` sequence: Instructs the LLM to stop generating as soon as this string is found
- `OutputParser`: This determines how to parse the LLM output into an `AgentAction` or `AgentFinish` object

import Example from "@snippets/modules/agents/how_to/custom_llm_agent.mdx"

<Example/>
